home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmigaPlus / AmigaOS / Aplus_Dev / AP-Website / links / admin / upgrade.sql < prev    next >
Encoding:
Text File  |  2002-10-28  |  3.5 KB  |  76 lines

  1. # ********************************************************************
  2. #  phpLinks2 Upgrade SQL
  3. # ********************************************************************
  4.  
  5. #    Note: You will need to edit the table names before performing these queries
  6. #    if your tables are not named the default table names.
  7.  
  8. # ********************************************************************
  9. #  2.1.1 -> 2.1.2
  10. # ********************************************************************
  11.  
  12. #    You must run 'admin/upgrade/convert_related_2.1.1-2.1.2.php'.
  13.  
  14.     alter table categories change Children Children enum ('Top','Rand','Desc','Vert') default 'Top' not null;
  15.     alter table links change ID ID smallint (5) unsigned not null auto_increment;
  16.     alter table links change Added Added char (14);
  17.     alter table links change Category Category smallint (5) unsigned default '0' not null;
  18.     alter table links change Password Password char (16) not null;
  19.     alter table links change HitsIn HitsIn smallint (5) unsigned default '0' not null;
  20.     alter table links change HitsOut HitsOut smallint (5) unsigned default '0' not null;
  21.     alter table categories change Description Description blob not null;
  22.     alter table reviews change ID ID smallint (5) unsigned not null auto_increment;
  23.     alter table reviews change SiteID SiteID smallint (5) unsigned default '0' not null;
  24.     alter table reviews change Review Review blob not null;
  25.     alter table reviews change Rating Rating tinyint (2) unsigned default '0' not null;
  26.     alter table reviews change Added Added timestamp (14) not null;
  27.     alter table sessions change id id char (32) not null;
  28.     alter table terms change Term Term varchar (32) not null;
  29.     alter table settings add OuterFrame enum ('Y','N') default 'Y' not null;
  30.  
  31. # ********************************************************************
  32. #  2.1 -> 2.1.1
  33. # ********************************************************************
  34.  
  35.     create table sessions (
  36.        id varchar(32) not null,
  37.        data text not null,
  38.        expire int(11) unsigned default '0' not null,
  39.        primary key (id)
  40.     );
  41.  
  42. # ********************************************************************
  43. #  2.1b -> 2.1
  44. # ********************************************************************
  45.  
  46.     alter table categories add ShowSiteCount enum ('Y','N') default 'Y' not null after AllowSites 
  47.     alter table settings add DefaultCountry varchar (50) default 'United States' not null after DateFormat
  48.  
  49. # ********************************************************************
  50. #  2.03 -> 2.1b
  51. # ********************************************************************
  52.  
  53.     alter table settings add Language varchar(16) not null default "english" after Theme;
  54.     alter table settings add DateFormat varchar(16) not null default 'M j, Y' after Email;
  55.     alter table links change Added Added varchar(14); 
  56.     alter table temp change Added Added varchar(14); 
  57.  
  58. # ********************************************************************
  59. #  2.02 -> 2.03
  60. # ********************************************************************
  61.  
  62. #    None
  63.  
  64. # ********************************************************************
  65. #  2.01 -> 2.02
  66. # ********************************************************************
  67.  
  68.     alter table links ADD Country VARchar (100) default 'United_States.gif' not null AFTER Category;
  69.     alter table temp ADD Country VARchar (100) default 'United_States.gif' not null AFTER Category;
  70.  
  71. # ********************************************************************
  72. #  2.0 -> 2.01
  73. # ********************************************************************
  74.  
  75. #    None
  76.